#!/bin/bash
profile=$1
if [[ -z $profile ]];then
  profile=dev
fi
mvn -D$profile clean package -Dmaven.test.skip=true || exit 1
echo $(pwd)
mv -f target/teddy*.jar /usr/local/vench/
nohup java -jar /usr/local/vench/teddy*.jar >/dev/null 2>&1 &